package com.cosmos.codegen.base.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ORACLEDB extends AbstractDB {
	
	static {
		try {
			Class.forName("oracle.jdbc.driver.OracleDriver");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}

	@Override
	public Connection getConnection() {
		try {
			return (Connection) DriverManager.getConnection("jdbc:oracle:thin:@10.135.108.217:1521/orcl","hzhig","hzhig");
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

}
